// 不包括数组有重复值的情况
const isArrEqual = (arr1,arr2) => {
  return arr1.length === arr2.length && arr1.every((ele) => arr2.includes(ele));
}
isArrEqual([1, 'b', false, undefined, null, NaN], [1, null, 'b', undefined, false, NaN]);